Skip to content

Conversation

@huydhn
Copy link
Contributor

@huydhn huydhn commented Oct 3, 2024

This adds a GHA to upload benchmark results. I'm using the existing torchci-oss-ci-benchmark database for now until the new generic database from https://fburl.com/gdoc/ossgtvte is ready. So, it's backed by dynamoDB instead of S3 for now.

I also include a quick test with some dummy Android benchmark records.

@vercel
Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
torchci ⬜️ Ignored (Inspect) Visit Preview Oct 5, 2024 1:51am

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 3, 2024
@huydhn huydhn requested review from clee2000 and kit1980 October 3, 2024 20:23
@huydhn huydhn marked this pull request as ready for review October 3, 2024 20:23
@clee2000
Copy link
Contributor

clee2000 commented Oct 3, 2024

What tables do our runners have access to? It seems a bit weird that they can upload to dynamodb

@huydhn
Copy link
Contributor Author

huydhn commented Oct 3, 2024

What tables do our runners have access to? It seems a bit weird that they can upload to dynamodb

Oh, the test job is in dry-run mode, it doesn't insert anything. I'm creating a GHA role atm for this

@huydhn
Copy link
Contributor Author

huydhn commented Oct 4, 2024

@clee2000 Here is the role https://github.com/pytorch-labs/pytorch-gha-infra/pull/483, plz help do a quick review there

@huydhn huydhn merged commit eeced40 into main Oct 5, 2024
8 checks passed
huydhn added a commit to pytorch/executorch that referenced this pull request Oct 5, 2024
Summary:
This PR adds a job to upload Android benchmark results to the benchmark database.  It transforms the `benchmark_results.json` file slightly to fit into the current schema.  We are going to have a better schema soon https://fburl.com/gdoc/ossgtvte, but landing this first would unblock the work on building the dashboard before the launch.  Updating the schema can be done later.

* The job processes what it finds, so if one model fails, the rest will still be uploaded.
* I will follow up with another PR for iOS later. No need to wait for the TPS metric there, we'll upload what available first.

There are still some TODO pending:

* pytorch/test-infra#5742
* meta-pytorch/pytorch-gha-infra#483

But the structure of the CI job is ready to review.

Pull Request resolved: #5808

Reviewed By: guangy10, kirklandsign

Differential Revision: D63869876

Pulled By: huydhn
facebook-github-bot pushed a commit to pytorch/executorch that referenced this pull request Oct 5, 2024
Summary:
This PR adds a job to upload Android benchmark results to the benchmark database.  It transforms the `benchmark_results.json` file slightly to fit into the current schema.  We are going to have a better schema soon https://fburl.com/gdoc/ossgtvte, but landing this first would unblock the work on building the dashboard before the launch.  Updating the schema can be done later.

* The job processes what it finds, so if one model fails, the rest will still be uploaded.
* I will follow up with another PR for iOS later. No need to wait for the TPS metric there, we'll upload what available first.

There are still some TODO pending:

* pytorch/test-infra#5742
* meta-pytorch/pytorch-gha-infra#483

But the structure of the CI job is ready to review.

Pull Request resolved: #5808

Reviewed By: guangy10, kirklandsign

Differential Revision: D63869876

Pulled By: huydhn

fbshipit-source-id: f9bf85c9599fafbfcc300d47e4307230c46b16db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants